#include "Timer.h"

std::atomic_int64_t Timer::_s_numCreated;
void Timer::restart(Timestamp now)
{
    if(_repeat)
    {
        _expiration = addTime(now, _interval);
    }
    else
    {
        _expiration = Timestamp::invalid();
    }
}